package com.tql.pandian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tql_pandian_data")
public class PandianDataEntity implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long pid;
    private Long caseId;
    private String stapCode;
    private BigDecimal stapAmout;
    private String deptCode;
    private String stapBaseUnit;
    private BigDecimal stapPrice;
    private Integer del;
    private Long creator;
    private String createBy;
    private Date createTime;
    private String code;
    private String stapName;
    private String semi;
    private String caseUnit;
    @TableField(value = "case_amount")
    private BigDecimal caseAmount;

    public PandianDataEntity(Long id ,BigDecimal stapAmout) {
        this.id = id;
        this.stapAmout=stapAmout;
    }
    public PandianDataEntity(Long id ,BigDecimal stapAmout,String semi) {
        this.id = id;
        this.stapAmout=stapAmout;
        this.semi=semi;
    }
    public PandianDataEntity() {

    }
}
